<?php
/**
 * LBN Payment Gateway Online Payment PHP Demo
 * @author langs
 * @version demo
 */


require_once("config.php");
require_once("lib/notify.class.php");

//verify notify
$Notify = new Notify($config);
$verify_result = $Notify->verifyNotify();

if($verify_result) {//verify succeed

    if($_POST["respCode"] != "00") {
    	echo $_POST["respMsg"]; exit;
    } elseif ($_POST['status'] == '1') {
    	//payment excuted succeed
    	//place ur code here
    }elseif($_POST['status'] == '0'){
    	//payment processing
    	//place ur code here
    }elseif($_POST['status'] == '2'){
    	//payment failure
    	//place ur code here   	
    }else{
    	echo $_POST["respMsg"]; exit;
    }
}
else {
    //signature failure
    //place ur code here
	echo "signature failure";
}
?>